<app:aside-block class='aside-block-highlighted' heading='Factory' visibility-model='Room.asidePanels.view'>
<div class='object-properties-id'>
ID: {{Room.selectedObject._id}}
</div>
<div>
<label>Owner:</label>
<a ng:href="#!{{ 'top.profile' | routeSegmentUrlStateless:{username: Room.users[Room.selectedObject.user].username} }}" ng:if='!Room.isSelectedObjectNPC()' title='View user profile'>
<img app:badge-src='Room.users[Room.selectedObject.user].badge'>
{{Room.users[Room.selectedObject.user].username}}
</a>
<span ng:if='Room.isSelectedObjectNPC()'>
{{Room.users[Room.selectedObject.user].username}}
</span>
</div>
<div>
<label>Position:</label>
{{Room.selectedObject.x}}, {{Room.selectedObject.y}}
</div>
<div>
<label>Hits:</label>
{{Room.selectedObject.hits | round}} / {{Room.selectedObject.hitsMax | round}}
</div>
<div ng:if='Room.selectedObject.level'>
<label>Level:</label>
{{Room.selectedObject.level}}
</div>
<div ng:if='Room.gameTime &amp;&amp; Room.selectedObject.cooldownTime &gt; Room.gameTime'>
<label>Cooldown:</label>
{{Room.selectedObject.cooldownTime - Room.gameTime}}
</div>
<div class='body'>
<label class='body-header'>
Store
<div class='pull-right'>
{{Room.calcResources(Room.selectedObject) | round}} / {{Room.selectedObject.storeCapacity | round}}
</div>
</label>
<div ng:if='!Room.calcResources(Room.selectedObject)'>Empty</div>
<table class='carry-resource'>
<tr ng:if='amount &gt; 0' ng:repeat='(resourceType, amount) in Room.selectedObject.store'>
<td>{{amount | number}}&nbsp;&times;&nbsp;</td>
<td>
<img class='resource-type' ng-src='https://s3.amazonaws.com/static.screeps.com/upload/mineral-icons/{{resourceType}}.png' uib-tooltip='{{Room.resourceTypeNames[resourceType]}}'>
</td>
</tr>
</table>
</div>
<ng-include src="'room-object-effects'"></ng-include>
<md-checkbox class='md-primary' md-no-ink ng:change='Room.onNotifyWhenAttackedChange()' ng:if="!Game.readOnly &amp;&amp; Room.selectedObject.user == Me()._id &amp;&amp; Room.roomMode == 'world'" ng:model='Room.selectedObject.notifyWhenAttacked'>
Notify me when attacked
</md-checkbox>
<app:room-destroy-structure></app:room-destroy-structure>
</app:aside-block>
